<div class="bh-content">
<div class="bh-ly-yw-conter-dianpu bh-padT10">
    <?php $this->renderPartial('application.views.partials.shop.left')?>
    <div class="bh-ly-yw-dianpu-right bh-pj-border bh-fr">
        <div class="bh-pj-cplb-right">
                <h1 class="bh-ly-yw-shang">产品列表</h1>
             <div class="bh-pj-sanya">
             	<?php $form = $this->beginWidget('CActiveForm',array(
            			'method' => 'get',
            			'action' => Yii::app()->createUrl('shop/goods/list',array('uid'=>$this->provider->id))
            		));
            	?>
            	<div class="bh-pj-sanye-aa">
                    <p>搜索店铺内商品：
                    	<span class="bh-pj-cpcp"><?php echo $form->textField($model,'title',array('class'=>'bh-input-def1 bh-mlt3','init-value'=>'请输入商品名称','id'=>'goods-name'));?></span>
                    	<span class="bh-pj-cppc"><input type="submit" value="搜索" class="bh-ly-yw-center-jjingqu-sub"/></span>
                    </p>
                    <script type="text/javascript">
						bindTextInit($('#goods-name'),$('#<?php echo $form->id?>'));
					</script>
                </div>
                <?php $this->endWidget();?>
            </div>
        	<div class="bh-ly-yw-lylb-xia-left bh-fl bh-ly-yw-ly-xia-left">
            <table width="100%">
                <tr>
                    <th width="375">产品名称</th>
                    <th width="76">市场价</th>
                    <th width="69">销售价</th>
                    <th width="72">代理价</th>
                    <th width="97"></th>
                </tr>
                <?php foreach ($data->data as $one):?>
                <tr height="50">
                    <td class="bh-textLt">
                        <dl class="bh-ly-yw-jlylb1">
                            <dt><a href="<?php echo $one->sVurl?>"><?php echo $one->img(97,62)?></a></dt>
                            <dd class="bh-ly-yw-tao"><a href="<?php echo $one->sVurl?>"><?php echo $one->fullTitle?></a></dd>
                            <?php if (in_array(get_class($one), array('Hotel','Scenic','Travel'))):?>
                            <dd><span>发布：</span><?php echo CHtml::value($one, 'profile.company.name')?></dd>
                            <?php endif;?>
                            <div class="bh-clear"></div>
                        </dl>
                    </td>
                    <td>￥<?php echo intval(CHtml::value($one, 'priceInfo.price_market'))?></td>
                    <td>￥<?php echo intval(CHtml::value($one, 'priceInfo.price_dealer'))?></td>
                    <?php if ($one->isAgentAble()):?>
                    <td>￥<?php echo intval(CHtml::value($one, 'priceInfo.price_agent'))?></td>
                    <?php endif;?>
                    <td><?php $this->renderPartial('agentGoods',array('fillter'=>$one->isAgentGoodsAble(),'provider'=>$this->provider,'goods'=>$one))?></td>
                </tr>
                <?php endforeach;?>
                </table>
            <div class="bh-space"></div>
			<div class="bh-c-shuizi1-c-yy bh-mLeft20">
				<?php $this->widget('LyLinkPager',array(
					'pages' => $data->pagination,
				))?>
			</div>
        </div>
        </div>
    </div>
    <div class="bh-clear"></div>
    <!-- 底部的友情链接 -->
    <?php $this->widget('lib.ext.data.DataWidget', array(
    	'model' => 'FriendLink',
    	'view' => 'application.views.partials.aircraft.friendlink',
    ));?>
</div>
</div>